import React from "react";
import { modalPropsType } from "@/constants/types";
import { Modal, Form, Radio } from "antd";
import { useModel } from "@umijs/max";


const {Item} = Form;

const ClueReceive = ({title, visible, onCancel, onSubmit}: modalPropsType) => {
  const [form] = Form.useForm();
  const {getDict} = useModel('dictModel');
  const clueInvalidRemark = getDict('clueInvalidRemark');

  const handleSubmit = async () => {

  }

  return (
    <Modal
      title={title}
      open={visible}
      onCancel={onCancel}
      onOk={handleSubmit}
      maskClosable={false}
    >
      <Form form={form} className="modal-form-padding">
        <Item label="如是无效客户，请添加备注">
            <Radio.Group options={clueInvalidRemark} />
        </Item>
      </Form>
    </Modal>
  );
}
export default ClueReceive;